/** 
  * @author Ji Ye Choi <cgycgy@naver.com>
  * @version 1.9
  * @since 2010-11-02
  */ 

public class AreaCalculator {
	public int Area(Rectangle[] shapes) {
		int area = 0;
		for(int i=0; i<shapes.length; i++) {
			area += shapes[i].getWidth() * shapes[i].getHeight();
		}
		return area;
	}
	public int Area(Circle[] shapes) {
		int area = 0;
		for(int i = 0; i < shapes.length; i++) {
			area += (int)(shapes[i].getRadius() 
					* shapes[i].getRadius() * Math.PI);
		}
		return area;
	}
}

